<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <script type="text/javascript" src="/common/js/boot.js"></script>
</head>
<body>
    <div align="center">
        <h2>正在登陆...</h2>
        <h2>
            页面将在<div id="num" style="display: inline">3</div>秒后跳转
        </h2>
    </div>
</body>
<script type="text/javascript">

 var pageUrl=$.page.webSiteRootUrl+"/user/jump";
 var timer;
 var second=3;

    $(function () {
        setTimeout('getTime()',1000);
    });

    function getTime() {
       second--;
       if(second >0){
           $("#num").text(second);
           timer=setTimeout('getTime()',1000);
       }else {
           clearTimeout(timer);
           toLogin();
       }
    }
    function toLogin() {
        location.href=pageUrl;
    }
</script>
</html>